package com.ali.sso.common.service;

import com.ali.sso.common.model.AccessTokenEntity;
import com.ali.sso.common.model.AuthorizationCodeEntity;
import com.ali.sso.common.model.OauthClient;
import com.ali.sso.common.model.UserLogin;

public interface IOAuthService {
	
	void saveAuthorizationCode(String userLoginId, String authorizationCode);
	AuthorizationCodeEntity findAuthorizationCode(String authorizationCode);
	
	void saveAccessToken(String userLoginId, String accessToken);
	AccessTokenEntity findAccessToken(String accessToken);
	
	OauthClient findOauthClient(String clientId);
	OauthClient findOauthClient(String clientId, String clientSecret);
	
	UserLogin findUserLogin(String userLoginId);
	
}
